package com.soyea.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * 微信登记的用户信息
 * Created by skh on 2018/1/19
 */
@Data
public class WxUserDTO {
	/**
	 * 姓名
	 */
	@NotEmpty(message = "姓名必填")
	@Length(min = 1,max = 20,message = "姓名长度在1-20字之间")
	private String name;

	/**
	 * 手机号
	 */
	@NotEmpty(message = "手机号必填")
	@Length(min = 1,max = 20,message = "手机号长度在1-20字之间")
	private String phone;

	/**
	 * 部门名称
	 */
	private String deptName;

	/**
	 * openId
	 */
	private String openid;
}
